5. Exception
…/­core/­Site.php91
4. Site processXMLData
…/­core/­Site.php64
3. Site loadData
…/­core/­Site.php35
2. Site __construct
…/­core/­Application.php220
1. Application getSite
…/­core/­Application.php51
0. Application handle
/­var/­www/­amaia/­www_front/­index.php28

Exception

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
Exception thrown with message "The site's ID in the XML (dambalinesubfr) is different from the folder's name (dambaline_fr)!" Stacktrace: #5 Exception in /var/www/amaia/lib/core/Site.php:91 #4 Site:processXMLData in /var/www/amaia/lib/core/Site.php:64 #3 Site:loadData in /var/www/amaia/lib/core/Site.php:35 #2 Site:__construct in /var/www/amaia/lib/core/Application.php:220 #1 Application:getSite in /var/www/amaia/lib/core/Application.php:51 #0 Application:handle in /var/www/amaia/www_front/index.php:28

The site's ID in the XML (dambalinesubfr) is different from the folder's name (dambaline_fr)!

/var/www/amaia/lib/core/Site.php
	private function processXMLData()
	{
		$processer = new XMLProcesser_Site();
		$processer->process($this->getPath() . 'site.xml');

		// Make sure that the ID defined in the XML is the same as the site's ID!
		if ($processer->getSiteID() != $this->id) {
			throw new Exception('The site\'s ID in the XML (' . $processer->getSiteID() . ') is different from the folder\'s name (' . $this->id . ')!');
		}

/var/www/amaia/lib/core/Site.php
		if (!$_CONFIG['debug'] && $cachedData = Cache::get('Site::' . $this->id)) {
			$this->config['https'] = false;
			$this->config  = $cachedData['config'];
			$this->layout  = $cachedData['layout'];
			$this->modules = $cachedData['modules'];
		} else {
			// Process data from the site's XML file
			$processedData = $this->processXMLData();

			// Store data in cache for later use
/var/www/amaia/lib/core/Site.php
	 * @param string $id The site's ID
	 */
	public function __construct($id, $setAsGlobal = true)
	{
		$this->id = (string) $id;

		// Load the site's data
		$this->loadData();

		// Load the site's group data if needed
/var/www/amaia/lib/core/Application.php
	private function getSite($domain)
	{
		global $_CONFIG;
 
		// If we're in debug mode, we must access a site using its ID as a subdomain!
		if (isset($_CONFIG['debug']) && $_CONFIG['debug']) {
			if (ends_with($domain, '.' . AMAIA_DEBUG_DOMAIN)) {
				$site = new Site(str_replace('.' . AMAIA_DEBUG_DOMAIN, '', $domain));
			} else {
				throw new Exception('Debug mode is active, so you must access your site using the following domain: {siteID}.' . AMAIA_DEBUG_DOMAIN);
/var/www/amaia/lib/core/Application.php
	{
		Logger::sql('', 'debug');
		Logger::sql('----------] ' . $request->domain . $request->path . ' [----------', 'debug');
 
		try {
 
			// Get the site matching the request's domain
			$site = $this->getSite($request->domain);
 
			// Apply the URL rewriting rules to the request
/var/www/amaia/www_front/index.php
 */

require('../config.php');
require(AMAIA_LIB . 'functions.php');
require(AMAIA_ROOT . 'autoload.php');

$app = new Application();
$app->handle(Request::buildFromHTTP(Request::TYPE_FRONT));
 
empty
empty
empty
empty
empty
Key Value
USER www-data
HOME /var/www
FCGI_ROLE RESPONDER
QUERY_STRING
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /catalogue/category/palapa
DOCUMENT_URI /index.php
DOCUMENT_ROOT /var/www/amaia/www_front
SERVER_PROTOCOL HTTP/1.1
HTTPS on
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.2.8
REMOTE_ADDR 18.210.11.249
REMOTE_PORT 52220
SERVER_ADDR 37.187.3.47
SERVER_PORT 443
SERVER_NAME _
REDIRECT_STATUS 200
SCRIPT_FILENAME /var/www/amaia/www_front/index.php
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING br,gzip
HTTP_HOST dambaline_fr.amaia.at
HTTP_CONNECTION Keep-Alive
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1603829708.5636
REQUEST_TIME 1603829708
empty
0. Whoops\Handler\PrettyPageHandler